{include file="header.tpl.php"}


<div class="titleFull">

	<div class="wrapper">

		<h1 style="line-height: 100px; margin: 0px;">Manage Links</h1>

	</div>

</div>


<div class="titleBlueBar"></div>




<div class="content2">

	<div class="wrapper">

		<div class="h30"></div>

		<div class="boxLeft2">




			<div class="listing">

			 <form action="links.php" method="post" id="form1" >
			 <div class="clear">
			  <table cellspacing="0" class="table">
			  <tr>
				  <!--<th style="width:60px">ID</th>--> <th>Link Name</th><th style="width:100px">Size</th><th style="width:50px">Clicks</th><th style="width:50px">Leads</th><th style="text-align:right;  padding-right:0; width:150px"><input style="margin-top:2px;" type="checkbox" id="checkAll" onclick="CheckAll('form1')" />&nbsp;</th>
			  </tr>
			  {if $files ne ""}
			  {foreach item=file from=$files}
				  
				  <tr style="background: {cycle name=rows values="#ffffff, #f6f6f6"}; height:22px; border-bottom:1px solid #eee;" onmouseover="mouseOver(this, '#fafbfc')" onmouseout="mouseOut(this, '{cycle name=hovers values='#ffffff,#fafbfc'}')"><!--<td>{$file.id}</td>--><td onmouseover="swap('entry{$file.id}', 'showInput')" onmouseout="swap('entry{$file.id}', 'hide')"  >
				  
				  
			<div>
			<div id="entry{$file.id}" style="display:block; width:100%">{$file.filename}</div>
				   <div id="inputdiventry{$file.id}" style="display: none;">
								<img src="templates/images/copy.png" style="margin-top:3px;" alt="Copy Link" />&nbsp;&nbsp;<input id="inputbox{$file.id}" onclick="selectText(this, 'entry{$file.id}');" type="text" class="copyInput"  readonly="readonly" value="{$SITE_URL|@urldecode}file/{$file.fcode}" style="width:300px;"/> </div>

							</div>
							
								  
				  
				  </td><td>{$file.filesize}</td><td>{$file.hits}</td><td>{$file.downloads}</td><td style="text-align:right; padding-right:0;"><a href="links.php?link={$file.id}">Details</a> | <a href="links.php?link={$file.id}&section=comment" class="file_d">Testimonials</a> <input type="checkbox" name="ids[]" value="{$file.id}" style="vertical-align:middle" onclick="uncheckCheckAllbox(this)" />&nbsp;</td></tr>
				  
				  {/foreach}
			  {/if}
			  



			</table>
			</div>


			<div style="width:670px; clear:both; margin-top:20px;">
			<div style="float: left;"><div style="margin-top:7px;">{if $records ne "" }&nbsp;<b>{$records}</b> Link(s), page <b>{$page}</b> of <b>{$pages}</b> {else} No link uploaded. {/if}{$firstpage} {$previouspage} {$nextpage} {$lastpage}&nbsp;</div></div>

			<div style="float: right;"><input type="submit" name="delete" value="Delete" class="buttonsmall" style="margin-top:7px;" onclick="if(!confirm('Are you sure you want to delete selected links?')) return false;" /></div>
			</div>
			</form>


			 {if $pages gt 1}
			 <div class="clear" style="width:670px; margin:0px auto; " >
			 <div style="float:left" class="paging">Page {$page} of {$pages}</div> <div style="float:right" class="paging"> {$previous} {$next}</div>
			 </div>
			{/if}
			  


			{literal}
			<script type="text/javascript">
			$(document).ready(function(){

			$('.listing_row').hover(function(){ $(this).css('background-color', '#f6f6f6'); }, function(){ $(this).css('background-color', '#ffffff'); });
			  $('#cboxClose').remove();
				 
			   $('.file_d').colorbox({iframe:true, innerWidth:600, innerHeight:550, scrolling: false});	 

			});
			</script>
			{/literal}
		
		</div>




	</div>



<!--Right Panel-->
{include file="sidebar.tpl.php"}
<!--End Right Panel-->


{include file="footer.tpl.php"}